package com.caiback.service;

import com.caiback.pojo.FindPost;
import com.caiback.pojo.MarketPost;
import com.caiback.pojo.Post;
import com.caiback.pojo.RecruitPost;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface PostService {
    int createPost(String sql, Post post);

    List<Post> getPostsFind();

    List<Post> getPostsRecruit();

    List<Post> getPostsMarket();

    List<MarketPost> getPostsPageMarket(Integer userId);

    List<FindPost> getPostsPageFind(Integer userId);

    List<RecruitPost> getPostsPageRecruit(Integer userId);

    int deletePost(Integer id, String postsname);
}